package com.kyl.service;



import cn.hutool.json.JSONObject;

import java.io.IOException;

/**
 * @author WanJl
 * @version 1.0
 * @title WechatService
 * @description 微信服务接口
 * @create 2025/1/13
 */
public interface WechatService {
    /**
     * 获取微信的openId
     * @param code
     * @return
     * @throws IOException
     */
    JSONObject getOpenId(String code) throws IOException;

    /**
     * 获取微信的电话号码
     * @param code
     * @return
     * @throws IOException
     */
    String getPhone(String code) throws IOException;


}
